home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / ODtoFWFrame Bug?.1 < prev    next >
Encoding:
Internet Message Format  |  1996-07-18  |  1.5 KB  |  [TEXT/ttxt]

  1. Subject:     ODToFWFrame Bug?
  2. Sent:        7/17/96 9:08 AM
  3. Received:    7/17/96 9:31 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I'm trying to get an FW_CFrame from an ODFacet with ODtoFWFrame().
  9. >Like so:
  10. >   FW_CFrame *aFrame = FW_CFrame::ODtoFWFrame(ev, currentFacet->GetFrame(ev));
  11.                 
  12. >But, there are times when ODtoFWFrame() does not return a valid FW_CFrame.
  13. >It appears that someone, other than the framework, has stored data in the
  14. >ODFrame's part info.  So...how can I tell if there's a valid FW_CFrame 
  15. >returned from ODtoFWFrame()?
  16. >                
  17. >                
  18. >Thanks,
  19. >Larry
  20. >larryj@dharbor.com
  21.  
  22. Note: I think you sent your question to the wrong mailing list.
  23.  
  24. That should never happen (unless there is a bug somewhere). If 
  25. currentFacet is a valid display facet then the frame's partinfo of this 
  26. facet should always be a FW_CFrame*. I hope you are not trying to get a 
  27. FW_CFrame from an embedded facet?
  28.  
  29. There is a method you can use FW_CPart::IsValidDisplayFrame to test if an 
  30. ODFrame is a display frame of this part.
  31.  
  32. ........................................................................
  33.  Henri Lamiraux                                      lamiraux@apple.com
  34.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  35. ........................................................................
  36.  
  37.  
  38.